string replace last character java

107

string replace last character java -

if(fieldName.endsWith(","))
{
  fieldName = fieldName.substring(0,fieldName.length() - 1);
}

Comments

Submit
0 Comments